import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import uView from "./uni_modules/uview-ui";
import store from './store'
import {request} from './utils/request.js'
// import VueAMap from './node_modules/vue-amap';
// Vue.use(VueAMap);
import { VueJsonp } from 'vue-jsonp'
Vue.use(VueJsonp)
Vue.prototype.request=request
Vue.prototype.$store = store
Vue.use(uView);
Vue.config.productionTip = false
App.mpType = 'app'

// VueAMap.initAMapApiLoader({
//   key: '4503bf596fa0681d4f7c123da77a5186',
//   plugin: ['AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType'],
//   uiVersion: '1.1',// ui库版本，不配置不加载,
//   v: '2.0'
// });

const app = new Vue({
	store,
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif